
    {include file="public/header"}
      <script src="__ADMIN__/ueditor/ueditor.config.js"></script>
    <script src="__ADMIN__/ueditor/ueditor.all.min.js"></script>
    <script src="__ADMIN__/ueditor/lang/zh-cn/zh-cn.js"></script>
    <!-- /头部 -->
    
    <div class="main-container container-fluid">
        <div class="page-container">
                        <!-- Page Sidebar -->
            {include file="public/left"}
            <!-- /Page Sidebar -->
            <!-- Page Content -->
            <div class="page-content">
                <!-- Page Breadcrumb -->
                <div class="page-breadcrumbs">
                    <ul class="breadcrumb">
                                        <li>
                        <a href="#">系统</a>
                    </li>
                                        <li>
                        <a href="{:url('cate/lst')}">栏目管理</a>
                    </li>
                                        <li class="active">编辑栏目</li>
                                        </ul>
                </div>
                <!-- /Page Breadcrumb -->

                <!-- Page Body -->
                <div class="page-body">
                    
<div class="row">
    <div class="col-lg-12 col-sm-12 col-xs-12">
        <div class="widget">
            <div class="widget-header bordered-bottom bordered-blue">
                <span class="widget-caption">编辑栏目</span>
            </div>
            <div class="widget-body">
                <div id="horizontal-form">
                    <form class="form-horizontal" role="form" action="{:url('cate/edit')}" method="post">
                    <input type="hidden" name="id" value="{$cates.id}" >
                        
                        <div class="form-group">
                            <label for="username" class="col-sm-2 control-label no-padding-right">上级栏目</label>
                            <div class="col-sm-6">
                               <select name="pid" id="">
                                <option value="0">顶级栏目</option>
                                {volist name="catelist" id="cate"}
                                <option  {if condition="$cates['pid'] eq $cate['id'] "} selected="selected" {/if} value="{$cate.id}">{if condition="$cate['level'] neq 0"}┝{/if}<?php echo str_repeat('--',$cate['level']*2); ?>{$cate.catename}
                                </option>
                                {/volist}
                               </select>
                            </div>
                        </div>

                        <div class="form-group">
                            <label for="username" class="col-sm-2 control-label no-padding-right">栏目名称</label>
                            <div class="col-sm-6">
                                <input class="form-control" value="{$cates.catename}" placeholder="" name="catename" required="" type="text">
                            </div>
                        </div>

                        <div class="form-group">
                            <label for="username" class="col-sm-2 control-label no-padding-right">关键词</label>
                            <div class="col-sm-6">
                                <input class="form-control" value="{$cates.keywords}"  placeholder="" name="keywords" required="" type="text">
                            </div>
                            
                        </div>

                        <div class="form-group">
                            <label for="username" class="col-sm-2 control-label no-padding-right">描述</label>
                            <div class="col-sm-6">
                                <textarea name="desc" id="" cols="60" rows="3">{$cates.desc}</textarea>
                            </div>
                          
                        </div>
                        <div class="form-group">
                            <label for="group_id" class="col-sm-2 control-label no-padding-right">栏目类型</label>
                            
                            <div class="col-sm-6">
                                <div class="radio" style="float: left;margin-right: 20px;">
                                <label>
                                    <input {if condition="$cates.type eq 1"} class="inverted" checked="checked"{/if} name="type" value="1" type="radio"  >
                                    <span class="text">列表 </span>
                                </label>
                                </div>
                                
                                <div class="radio" style="float: left;margin-right: 20px;">
                                <label>
                                <input  {if condition="$cates.type eq 2"} class="inverted"  checked="checked"{/if} name="type" value="2" class="inverted"  type="radio" >
                                    <span class="text">单页 </span>
                                </label>
                                </div>
                            
                        
                                <div class="radio" style="float: left;margin-right: 20px;">
                                <label>
                                    <input {if condition="$cates.type eq 3"} class="inverted"  checked="checked"{/if} name="type" value="3"  type="radio" >
                                    <span class="text">图片 </span>
                                </label>
                                </div>
                            </div>  
                        </div>

                        <div class="form-group">
                            <label for="username" class="col-sm-2 control-label no-padding-right">是否推荐到首页</label>
                            <div class="radio" style="float: left;margin-right: 20px;">
                               
                            <label style="float: left;margin-left: 30px;">
                            <input name="rec_index" {if condition="$cates.rec_index eq 1"} checked="checked" {/if} value="1" type="radio">
                            <span class="text">是 </span>
                            </label>
                            <label style="float: left;margin-left: 30px;">
                            <input name="rec_index" {if condition="$cates.rec_index eq 0"} checked="checked" {/if} value="0" type="radio" class="inverted">
                            <span class="text">否 </span>
                        </label>
                      
                            </div> 
                              
                        </div>


                        <div class="form-group">
                            <label for="username" class="col-sm-2 control-label no-padding-right">是否推荐到底部</label>
                            <div class="radio" style="float: left;margin-right: 20px;">
                   
                            <label style="float: left;margin-left: 30px;">
                            <input name="rec_bottom" {if condition="$cates.rec_bottom eq 1"} checked="checked" {/if} value="1" type="radio">
                            <span class="text">是 </span>
                            </label>
                            <label style="float: left;margin-left: 30px;">
                            <input name="rec_bottom" {if condition="$cates.rec_bottom eq 0"} checked="checked" {/if} value="0" type="radio" class="inverted">
                            <span class="text">否 </span>
                        </label>   
                            </div> 
                           
                        </div>


                            <div class="form-group">
                            <label for="username" class="col-sm-2 control-label no-padding-right">内容</label>
                            <div class="col-sm-6">
                               <textarea name="content" id="content">{$cates.content}</textarea>
                            </div>
                            
                        </div>
                             
                            <div class="form-group">
                                <div class="col-sm-offset-2 col-sm-10">
                                    <button type="submit" class="btn btn-default">保存信息</button>
                                </div>
                            </div> 
                            
                    </form>
               </div>
            </div>
    
        </div>
    </div>
</div>

                </div>
                <!-- /Page Body -->
            </div>
            <!-- /Page Content -->
        </div>  
    </div>

        <!--Basic Scripts-->
    <script src="__ADMIN__/style/jquery_002.js"></script>
    <script src="__ADMIN__/style/bootstrap.js"></script>
    <script src="__ADMIN__/style/jquery.js"></script>
    <!--Beyond Scripts-->
    <script src="__ADMIN__/style/beyond.js"></script>
    <script type="text/javascript">

    //实例化编辑器
    //建议使用工厂方法getEditor创建和引用编辑器实例，如果在某个闭包下引用该编辑器，直接调用UE.getEditor('editor')就能拿到相关的实例
    UE.getEditor('content',{initialFrameWidth:500,initialFrameHeight:300,});
    </script>


</body></html>